#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;

//int main()
//{
//	char str[10] = { 0 };
//
//	cout << str << endl;
//	return 0;
//}




int main() {
    string s;
    while (cin >> s);
    cout << s.size();
    return 0;
}

class Solution {
public:
    string reverseStr(string s, int k) {
        string::iterator it1 = s.begin();
        int count = 0;
        while (it1 != s.end())
        {
            it1++;
            count++;
            if (count == k * 2)
            {
                reverse(it1 - count, it1 - k);
                count = 0;
            }

        }
        if (count > k)
        {
            reverse(it1 - count, it1 - (count - k));
        }
        else
        {
            reverse(it1 - count, it1);
        }
        return s;
    }
};

class Solution {
public:
    string reverseWords(string s) {
        for (int i = 0; i < s.size();)
        {
            int j = i;
            while (s[j] != ' ' && s[j] != '\0')
            {
                j++;
            }
            reverse(s.begin() + i, s.begin() + j);
            i = j + 1;
        }
        return s;
    }
};
